package com.ztgf.pay;


import com.ztgf.pay.common.listener.ZjListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.ztgf.*.mapper*")
@SpringBootApplication
@ComponentScan(basePackages={"com.ztgf"})
@EnableAsync
@EnableScheduling
public class PayApplication {

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplication(PayApplication.class);
        springApplication.addListeners(new ZjListener());
        SpringApplication.run(PayApplication.class, args);
    }

}
